﻿/**
 * ...
 * @author	Kliment
 * @version	1.0.2
 */
class kliment.utils._TextField {
	
	static public function get autosizeLeft():String { return 'left' }
	static public function get autosizeRight():String { return 'right' }
	static public function get autosizeCenter():String { return 'center' }
	static public function get autosizeNone():String { return 'none' }
	
	static public function text(target:TextField, str:String):TextField {
		var tf:TextFormat = target.getTextFormat();
		target.text = str;
		target.setTextFormat(tf);
		return target;
	}
	
	static public function htmlText(target:TextField, str:String):TextField {
		var tf:TextFormat = target.getTextFormat();
		target.htmlText = str;
		target.setTextFormat(tf);
		return target;
	}
}